export default defineAppConfig({
    lazyCodeLoading: 'requiredComponents',
    pages: [
        'pages/tabBar/index/index',
        'pages/tabBar/wholesale/index',
        'pages/tabBar/manufacturer/index',
        'pages/tabBar/businessOpportunity/index',
        'pages/tabBar/user/index',
    ],
    subPackages: [
        {
            root: 'pages/view/',
            pages: [
                'editUserInfo/index',
                'twoCatDetail/index',
                'carouselRich/index',
                'webView/index',
                'categoryCommodity/index',
                'commodityForm/index',
                'commodityInfo/index',
                'commodityManage/index',
                'enterpriseForm/index',
                'enterpriseIntro/index',
                'login/index',
                'myCollect/index',
                'myFollow/index',
                'myPublish/index',
                'myTrace/index',
                'promotion/index',
                'publishForm/index',
                'publishInfo/index',
                'search/index',
                'settleForm/index'
            ]
        },

    ],
    window: {
        backgroundTextStyle: 'light',
        navigationBarBackgroundColor: '#fff',
        navigationBarTitleText: '拓物链',
        navigationBarTextStyle: 'black'
    },
    permission: {
        "scope.userLocation": {
            "desc": "您的位置信息将用于提供定位服务"
        },
        "scope.writePhotosAlbum": {
            "desc": "保存到相册"
        },
        "scope.camera": {
            "desc": "拍照"
        },
        "scope.scanCode": {
            "desc": "扫码"
        }
    },
    requiredPrivateInfos: ["getLocation", "chooseLocation"],
    tabBar: {
        selectedColor: '#fa2828',
        list: [
            {
                pagePath: "pages/tabBar/index/index",
                text: "首页",
                iconPath: "/images/shouye.png",
                selectedIconPath: "/images/s-shouye.png"
            },
            {
                pagePath: "pages/tabBar/wholesale/index",
                text: "百货批发",
                iconPath: "/images/baihuo.png",
                selectedIconPath: "/images/s-baihuo.png"
            },

            {
                pagePath: "pages/tabBar/manufacturer/index",
                text: "生产厂家",
                iconPath: "/images/changjia.png",
                selectedIconPath: "/images/s-changjia.png"
            },


            {
                pagePath: "pages/tabBar/businessOpportunity/index",
                text: "商机广场",
                iconPath: "/images/shangji.png",
                selectedIconPath: "/images/s-shangji.png"
            },


            {
                pagePath: "pages/tabBar/user/index",
                text: "我的",
                iconPath: "/images/wode.png",
                selectedIconPath: "/images/s-wode.png"
            },


        ]
    },
})
